Passed
Pull Request — develop (#276)
by
unknown
02:58
created

module.exports   B

Complexity

Conditions 1
Paths 1

Size

Total Lines 48
Code Lines 38

Duplication

Lines 0
Ratio 0 %

Importance

Changes 3
Bugs 0 Features 0
Metric Value
cc 1
eloc 38
c 3
b 0
f 0
nc 1
dl 0
loc 48
rs 8.968
nop 0
1
module.exports = function () {
2
  const build = 'build';
3
4
  return {
5
    build: build,
6
    faviconData: 'assets/faviconData.json',
7
    src: {
8
      sass: 'scss/**/*.scss',
9
      javascript: ['./app.js', 'lib/**/*.js'],
10
      json: 'locale/*.json',
11
      html: ['html/*.html', './config*.js']
12
    },
13
    clean: [build + '/*.map', build + '/vendor', build + '/main.css'],
14
    autoprefixer: ['> 1% in DE'],
15
    browsersync: {
16
      open: false,
17
      server: {
18
        baseDir: build
19
      },
20
      files: [
21
        build + '/*.css',
22
        build + '/*.js',
23
        build + '/*.html',
24
        build + '/locale/*.json'
25
      ]
26
    },
27
    requireJs: {
28
      prod: {
29
        baseUrl: 'lib',
30
        name: '../node_modules/almond/almond',
31
        mainConfigFile: 'app.js',
32
        include: '../app',
33
        out: 'app.js',
34
        build: true,
35
        preserveLicenseComments: true
36
      },
37
      dev: {
38
        baseUrl: 'lib',
39
        name: '../node_modules/almond/almond',
40
        mainConfigFile: 'app.js',
41
        include: '../app',
42
        optimize: 'none',
43
        out: 'app.js',
44
        build: false
45
      }
46
    }
47
  };
48
};
49